/**
 * 文字样式工具类
 * 基于 uni.scss 中的文字变量
 * 注意：文字样式只能设置在 <text> 或 <button> 组件上（ucss 规范）
 */

/* 字体大小 */
.text-xs {
	font-size: 10px;
}

.text-sm {
	font-size: $uni-font-size-sm;
}

.text-base {
	font-size: $uni-font-size-base;
}

.text-lg {
	font-size: $uni-font-size-lg;
}

.text-xl {
	font-size: 18px;
}

.text-2xl {
	font-size: $uni-font-size-title;
}

/* 字体粗细 */
.font-normal {
	font-weight: normal;
}

.font-bold {
	font-weight: bold;
}

.font-medium {
	font-weight: 500;
}

.font-semibold {
	font-weight: 600;
}

/* 文字颜色 */
.text-primary {
	color: $uni-color-primary;
}

.text-success {
	color: $uni-color-success;
}

.text-warning {
	color: $uni-color-warning;
}

.text-error {
	color: $uni-color-error;
}

.text-base-color {
	color: $uni-text-color;
}

.text-inverse {
	color: $uni-text-color-inverse;
}

.text-grey {
	color: $uni-text-color-grey;
}

.text-placeholder {
	color: $uni-text-color-placeholder;
}

.text-disable {
	color: $uni-text-color-disable;
}

/* 文字对齐 */
.text-left {
	text-align: left;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

/* 文字装饰 */
.underline {
	text-decoration: underline;
}

.line-through {
	text-decoration: line-through;
}

.no-underline {
	text-decoration: none;
}

/* 文字溢出处理 */
.text-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.text-clip {
	overflow: hidden;
	text-overflow: clip;
	white-space: nowrap;
}

/* 行高 */
.leading-none {
	line-height: 1;
}

.leading-tight {
	line-height: 1.25;
}

.leading-normal {
	line-height: 1.5;
}

.leading-relaxed {
	line-height: 1.75;
}

.leading-loose {
	line-height: 2;
}

